package net.lovedna.data.messages {
	import net.lovedna.data.Message;

	import flash.utils.ByteArray;

	/**
	 * @author lee
	 */
	public class MessageLogin extends Message {
		public var msg:String;
		public var id:int;
		public var access:String;
		public function MessageLogin() {
			super();
		}

		override public function decode(data : ByteArray) : void {
			msg=data.readUTF();
			id=data.readInt();
			access=data.readUTF();
		}
		override public function toString() : String {
			return "MessageLogin[msg="+msg+",id="+id+",access="+access+"]";
		}

	}
}
